From: Jonas Dreßler Date: Wed, 12 Jan 2022 10:36:41 +0000 (+0100) Subject: switcherPopup: Rename _onItemEnter() to _onItemMotion() X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~530^2^2~255 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=87101cf165d6a818f819f4c146491dcb985e5b9a;p=gnome-shell.git switcherPopup: Rename _onItemEnter() to _onItemMotion() Since commit e94de67b, this is called by a motion-event handler instead of enter-event, so let's adjust the function name. Part-of: --- diff --git a/js/ui/altTab.js b/js/ui/altTab.js index 6af9380ed..26c92de0c 100644 --- a/js/ui/altTab.js +++ b/js/ui/altTab.js @@ -794,9 +794,9 @@ class AppSwitcher extends SwitcherPopup.SwitcherList { } } - // We override SwitcherList's _onItemEnter method to delay + // We override SwitcherList's _onItemMotion method to delay // activation when the thumbnail list is open - _onItemEnter(item) { + _onItemMotion(item) { const index = this._items.indexOf(item); if (this._mouseTimeOutId != 0) diff --git a/js/ui/switcherPopup.js b/js/ui/switcherPopup.js index b1e273006..ccc8b0fb0 100644 --- a/js/ui/switcherPopup.js +++ b/js/ui/switcherPopup.js @@ -428,7 +428,7 @@ var SwitcherList = GObject.registerClass({ this._list.add_actor(bbox); bbox.connect('clicked', () => this._onItemClicked(bbox)); - bbox.connect('motion-event', () => this._onItemEnter(bbox)); + bbox.connect('motion-event', () => this._onItemMotion(bbox)); bbox.label_actor = label; @@ -455,7 +455,7 @@ var SwitcherList = GObject.registerClass({ this._itemActivated(this._items.indexOf(item)); } - _onItemEnter(item) { + _onItemMotion(item) { // Avoid reentrancy if (item !== this._items[this._highlighted]) this._itemEntered(this._items.indexOf(item));